﻿<v:ResizeActionEditorBase x:Class="VisualPoint.Controls.Views.ResizeActionEditor"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:v="clr-namespace:VisualPoint.Controls.Views"
        xmlns:a="clr-namespace:VisualPoint.Controls.Actions"
        xmlns:vc="clr-namespace:VisualPoint.Controls.ValueConverters"
        xmlns:local="clr-namespace:VisualPoint.Controls.Views" 
        Title="Resize Action Editor" 
        Height="300" 
        Width="600" 
        WindowStartupLocation="CenterScreen" ShowInTaskbar="False" Topmost="True">
    <Window.Resources>
        <vc:EnumToBoolConverter x:Key="EBConverter"/>
    </Window.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <TextBlock Text="Action Time" 
			Grid.Row="0" Grid.Column="0"/>
        <local:ActionTimeEditor ActionTime="{Binding ActionTime, Mode=TwoWay}" 
            Grid.Row="0" Grid.Column="1" />

        <TextBlock Text="Resize Option" 
                   Grid.Row="1" Grid.Column="0"/>
        <StackPanel  Grid.Row="1" Grid.Column="1">
            <RadioButton IsChecked="{Binding Path=ResizeOption, Converter={StaticResource EBConverter}, 
                ConverterParameter={x:Static a:ResizeOption.Small}}" Content="Small"/>
            <RadioButton IsChecked="{Binding Path=ResizeOption, Converter={StaticResource EBConverter}, 
                ConverterParameter={x:Static a:ResizeOption.Normal}}" Content="Normal"/>
            <RadioButton IsChecked="{Binding Path=ResizeOption, Converter={StaticResource EBConverter}, 
                ConverterParameter={x:Static a:ResizeOption.FullScreen}}" Content="Fullscreen"/>
            <RadioButton IsChecked="{Binding Path=ResizeOption, Converter={StaticResource EBConverter}, 
                ConverterParameter={x:Static a:ResizeOption.Dock}}" Content="Dock"
                         Visibility="Collapsed"/>
        </StackPanel>

        <TextBlock Text="Dock With" 
			       Grid.Row="2" Grid.Column="0"
                   Visibility="Collapsed"/>
        <ComboBox x:Name="dockWith" SelectedValue="{Binding DockWith}" 
                  SelectedValuePath="Id" DisplayMemberPath="Name"
                  Grid.Row="2"  Grid.Column="1" 
                  Visibility="Collapsed"/>

        <TextBlock Text="Dock At" 
			       Grid.Row="3" Grid.Column="0"
                   Visibility="Collapsed"/>
        <ComboBox x:Name="dockAt" SelectedValue="{Binding DockAt}" 
                  SelectedValuePath="Id" DisplayMemberPath="Name"
                  Grid.Row="3"  Grid.Column="1" 
                  Visibility="Collapsed"/>

        <RadioButton IsChecked="{Binding Path=ResizeOption, Converter={StaticResource EBConverter}, 
                     ConverterParameter={x:Static a:ResizeOption.Configuration}}" Content="Configuration"
                     Grid.Row="5"  Grid.Column="1"/>

        <TextBlock Text="Configuration" 
			Grid.Row="6" Grid.Column="0"/>
        <ComboBox x:Name="configuration" SelectedValue="{Binding Configuration}" 
                  Grid.Row="6"  Grid.Column="1" />
        
        
        <StackPanel 
                    Grid.Row="8"  Grid.Column="1" Orientation="Horizontal">
            <Button Click="Ok_Click"
                 Width="100">
                <TextBlock Text="Ok"/>
            </Button>
            <Button Click="Cancel_Click"
                 Width="100">
                <TextBlock Text="Cancel"/>
            </Button>
        </StackPanel>
        
    </Grid>
</v:ResizeActionEditorBase>
